package com.fastCms.business.mall.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 产品SKU表
 *
 * </p>
 *
 * @author lsquan
 * @since 2019-05-24
 */
@ApiModel(value = "ProductSku对象", description = "产品SKU表")
@Data
public class ProductSku extends Model<ProductSku> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "sku组合值(存储属性值,逗号分隔)")
    private String skuAttr;

    @ApiModelProperty(value = "产品ID")
    private String productId;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "产品原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "sku重量（kg）")
    private Double weight;

    @ApiModelProperty(value = "规格库存")
    private Integer skuStock;

    @ApiModelProperty(value = "描述")
    private String skuDesc;

    @ApiModelProperty(value = "排序")
    private Integer viewSort;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", update = "now()")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "1-正常0-已删除")
    private Integer state;


}
